package com.brillilab.service.core.kit;

import java.util.List;
import java.util.Map;

import com.brillilab.domain.po.kit.SampleTemplate;
import com.brillilab.domain.vo.kit.SampleTemplateGroupVo;

/**
 * 样品属性模版接口
 *
 * @author wmh
 */
public interface ISampleTemplateService {


	SampleTemplate insert(SampleTemplate entity);

	boolean deleteById(Long id);

	boolean updateById(SampleTemplate entity);

	SampleTemplate selectById(Long id);
	
	/**
	 * 样品属性模版归类
	 * @param reagentTypeId
	 * @return
	 */
	List<SampleTemplateGroupVo> getSampleTemplateGroup(Long reagentTypeId, Long labId, Long labMemberId);
	/**
	 * 显示或隐藏模版
	 * @param template
	 * @return
	 */
	boolean isHideTemplate(SampleTemplate template, Long labMemberId);

	/**
	 * 添加样品模版组
	 * @param reagentTypeId
	 * @return
	 */
	boolean addGroup(Long labId,Long reagentTypeId, Long labMemberId);

	Map<Long, SampleTemplate> getTempMap(Long reagentTypeId, Long labId);

}
